# 写程序的基础函数

import matplotlib.pylab as plt
import warnings


# 画图正常显示
def Correct_Show():
    # 正常显示负号
    plt.rcParams['axes.unicode_minus'] = False
    # 用来正常显示中文标签
    plt.rcParams['font.sans-serif'] = ['SimHei']
    # set default size of plots
    plt.rcParams['figure.figsize'] = (10.0, 8.0)
    plt.rcParams['image.interpolation'] = 'nearest'
    plt.rcParams['image.cmap'] = 'gray'
    # 不显示warning
    warnings.filterwarnings('ignore')




